package cn.edu.qut.edusys.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface NewsMapper {
    @Select("SELECT * FROM t_news_info")
    List<Map<String,Object>> list();

    @Select("SELECT * FROM t_news_info WHERE newsId=#{id}")
    Map<String,Object> info(@RequestParam String id);
}
